package com.chen.demo.chater1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.test.context.ContextConfiguration;

@Component
public class BlogProperty {

	@Value("${com.chen.blog.name}")
	private String username;
	@Value("${com.chen.blog.title}")
	private String title;
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
}
